﻿using KhoaLuan.Areas.Admin.ActionFilters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace KhoaLuan.Areas.Admin.Controllers
{
    [Security]
    public class HomeController : Controller
    {
        //
        // GET: /Admin/Home/
        LuanVanEntities db = new LuanVanEntities();
        public ActionResult Index()
        {

            var model = new Order();
            ViewBag.Orders = db.Orders
                .Take(5)
                 .OrderByDescending(o => o.OrderDate)
                 ;
            return View(model);
        }
	}
}